package study8;

/**
 * 静态内部类的示范
 **/
public class Outter1 {
    private static int test = 100;
    private String msg = "外部类的成员变量";
    // 静态内部类，就是一个普通类，只是把他套在了Outter的里面而已。
    static class Inner {
        static int num = 10;
        int age = 1;
        public void fun() {
            System.out.println(new Outter1().msg);
            System.out.println(test);
        }
    }
    public void test() {
        Inner inner = new Inner();
    }
    public static void main(String[] args) {
        Inner inner = new Inner();
        inner.fun();
    }
}
